// 持久化存储数据
export const SET_TOKEN = (token: string) => {
  return localStorage.setItem('token', token);
};

export const GET_TOKEN = () => {
  return localStorage.getItem('token');
};

export const REMOVE_TOKEN = () => {
  return localStorage.removeItem('token');
};

// import Cookies from 'js-cookie'

// const TokenKey = 'Admin-Token'

// export function getToken() {
//   return Cookies.get(TokenKey)
// }

// export function setToken(token) {
//   return Cookies.set(TokenKey, token)
// }

// export function removeToken() {
//   return Cookies.remove(TokenKey)
// }
